package com.github.panchitoboy.shiro.wechat.repository;

public class WechatTokenResponse {

	private String token;

	private UserInfo userInfo;

	public WechatTokenResponse() {
	}

	public WechatTokenResponse(UserInfo userInfo, String token) {
		this.userInfo = userInfo;
		this.token = token;
	}

	public String getToken() {
		return token;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}
	
	@Override
	public String toString() {
		return userInfo.getName();
	}

}
